<template>
  <div class="home">
    <HelloWorld msg="Welcome to Your Vue.js App"/>
    <el-button type="primary" @click="getVersioList">点击Mock</el-button>
  </div>
</template>

<script>
import HelloWorld from '@/components/HelloWorld.vue'

export default {
   name: 'home',
  components: {
    HelloWorld
  },
  data () {
    return {
    }
  },

  methods: {
    getVersioList(){
      this.axios.post('news/api')
          .then((res) => {
              console.log(res)
          })
          .catch((err) => {
            console.log(err)
          })
    }
  },

  created () {
  },
  mpounted () {
    this.getVersioList();
  }
}
</script>

<style lang='less' scoped>

</style>
